<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>flex弹性盒子</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" href="css/index.css" />
	</head>
	<body>
		<!--
			给父亲设置了flex，其子元素都会变成带有弹性盒子的特性
			flex-grow: 增加 自动分配父亲的剩余宽度
		-->
		<div class="baba">
			<div class="son son1">
				<p>这里是儿子1</p>
			</div>
			<div class="son son2">
				<p>这里是儿子2</p>
			</div>
			<div class="son son3">
				<p>这里是儿子3</p>
			</div>
			<div class="son son1">
				<p>这里是儿子1</p>
			</div>
			<div class="son son2">
				<p>这里是儿子2</p>
			</div>
			<div class="son son3">
				<p>这里是儿子3</p>
			</div>
			<div class="son son1">
				<p>这里是儿子1</p>
			</div>
			<div class="son son2">
				<p>这里是儿子2</p>
			</div>
			<div class="son son3">
				<p>这里是儿子3</p>
			</div>
		</div>
	</body>
</html>
